import { get, post } from "../http";

/** 登录接口 */
export const login = async (data: { username: string, password: string }) => {
  return post("/login", data)
}

/** 登录接口 */
export const register = async (data: { username: string, password: string, permissions: string[] }) => {
  return post("/register", data)
}

/** 获取用户信息 */
export const getUserInfo = async () => {
  return post("/getUserInfo")
}
